package FanXing;

public class Test {
    public static <T> String concat(T... arrs) {
        String str = "";
        for (T arr : arrs) {
            String str1 = arr + "-";
            str = str + str1;
        }
        return str;
    }

    public static void main(String[] args) {
        String s = concat(1, 2, 3, 45, 6);
        System.out.println(s);
    }
}
